package htdi.act.usrmgr.utils;

import act.event.On;
import act.mail.Mailer;
import htdi.act.usrmgr.models.User;

@Mailer
public class PostOffice extends Mailer.Util {

    @On(value = User.EVENT_SIGN_UP, async = true)
    public void sendRegistrationConfirmation(User user, String tk) {
        subject("欢迎来到 HowToDoIt - 用户管理系统");
        to(user.email);
        send(user, tk);
    }

}
